<?php

namespace app\admin\controller;

use app\admin\model\AdminLog;
use app\common\controller\Backend;
use think\Config;
use think\Hook;
use think\Session;
use think\Validate;
use think\Db;
/**
 * 后台首页
 * @internal
 */
class Oaapi extends Backend
{

    protected $model = null;
    protected $layout = '';
    
    public function _initialize()
    {
        parent::_initialize();
        $this->model = new \app\admin\model\Oaapi;
        //移除HTML标签
        $this->request->filter('trim,strip_tags,htmlspecialchars');
    }

    
    public function index()
    {
        try{
            $this->model::userList();
        }catch (\Exception $e){
            $this->error($e->getMessage());
        }
    }
}
